package com.itmg.taskmanager.impl;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.itmg.cache.CacheContext;
import com.itmg.taskmanager.ISearchDataManager;
import com.itmg.taskmanager.bean.SearchTaskBean;
import com.itmg.vo.SearchParameterVO;
import com.itmg.vo.SearchResultItemVO;
import com.itmg.vo.SearchResultVO;


public class SearchManagerImpl implements ISearchDataManager {

	public SearchManagerImpl() {
		
	}

	public SearchResultVO getSearchResult(SearchParameterVO searchParameterVO,HttpServletRequest request)
			throws Exception {
		return SearchTaskBean.getDataItemListByCondition(searchParameterVO,request);
	}

//	public SearchResultVO getDetailResult(SearchParameterVO searchParameterVO,HttpServletRequest request)
//			throws Exception {
//		return SearchTaskBean.getDetailItemListByCondition(searchParameterVO,request);
//	}
	
	public SearchResultItemVO getSearchResultItemVOByMd5(String md5,List<SearchResultItemVO> dataItemList)
	        throws Exception {
		return CacheContext.getSearchResultItemVOByMd5(md5,dataItemList);
	}

}
